package com.zhanghu.single.static_inner_class_single_model;

/**
 * @Author: zhanghu
 * @Description: 静态内部类实现单例模式
 * @Date: Create in 9:56 2020/1/17
 * @modified by:
 */
public class StaticInnerClassSingleModel {
    private StaticInnerClassSingleModel() {

    }

    public static StaticInnerClassSingleModel getSingle() {
        return InnerClass.SINGLE;
    }

    private static class InnerClass {
        private static final StaticInnerClassSingleModel SINGLE = new StaticInnerClassSingleModel();
    }
}
